<?php

/**
 * @package examples
 */

require 'Zend/Registry.php';

$obj = new stdClass;
Zend_Registry::set('monobjet', $obj);

class UneClasse
{
    public function __construct()
    {
        Zend_Registry::get('monobjet')->prop = 'value';
    }
}

$a = new UneClasse;
echo $obj->prop; // value